﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Reddit.EndpointRetriever;
using Reddit.Data;
using Reddit.JsonParser;
using Reddit.Api;

namespace Reddit
{
    public class RedditApi : RedditApiBase<object>
    {
        protected HttpEndpointRetriever httpEndpointRetriever { get; set; }

        public RedditApi()
            : this("www.reddit.com")
        { }

        public RedditApi(string host)
            : this(new HttpEndpointRetriever(new UrlEndpointRetriever(host, "json")))
        { }

        public RedditApi(HttpEndpointRetriever httpEndpointRetriever)
            : base(new ObjectEndpointRetriever(httpEndpointRetriever))
        { }
    }
}
